<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
    <div id="app">
       <ul>
           <li v-for="(item,key) in dataList">{{item.text}}</li>
<!--           <li v-for="(item,key) in dataList" :key="item.id">{{item.text}}</li>-->
       </ul>
    </div>
    <script src="../vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                dataList:[
                    {text:"你好",id:1}, {text:"我不太好",id:2}, {text:"真的不太好吗",id:3}, {text:"哈哈哈哈 骗你的",id:4}
                ],
                index: 0
            }
        });
    </script>
</body>
</html>